package com.meizi.platformuserapi.clients;

import com.meizi.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2020/11/26 12:40
 */
@FeignClient(value = "user-service")
public interface IUserAuthFeignClient {
    @GetMapping(value = "/token", consumes = MediaType.APPLICATION_JSON_VALUE)
    R validToken(@RequestParam("token") String token);
}
